import request from '@/utils/request'

//获取角色列表
export function getRoleList(data) {
	return request({
		method: 'get',
		url: 'tbSysRole/queryPageList',
		headers: {
			userButton: 'ba9896fc77074fcead8b591273a84bf6'
		},
		params: data,
	})
}

//添加角色
export function addedRole(data) {
	return request({
		method: 'post',
		url: 'tbSysRole/add',
		headers: {
			userButton: '5c65394400a04739a6f5642a9ca1abcf'
		},
		data,
	})
}

//修改角色
export function updateRole(data) {
	return request({
		method: 'post',
		url: 'tbSysRole/update',
		headers: {
			userButton: '27aa989fda2c4e278d1727bd14c34b3f'
		},
		data,
	})
}

//删除角色
export function deleteRole(id) {
	return request({
		method: 'get',
		url: 'tbSysRole/delete/' + id,
		headers: {
			userButton: '787b0be6450b4a3ead3714b4c1e8b094'
		},
	})
}